/**CopyRight[1990-2012]<lyc2877@gmail.com>
 */
#ifndef MYIPCS_INCLUDE_THREAD_H_
#define MYIPCS_INCLUDE_THREAD_H_

#include "MQueue.h"
#include "Common.h"
class CThread {
 public:
   CThread();
   ~CThread();
   virtual int32_t start_thread();
   virtual int32_t stop_thread();
   virtual int32_t shutdown();
   virtual int32_t work() = 0;
   int print_time(char* in_szBuf);
   bool is_stop;
   bool is_already_stop;
   char m_cl_name[THREAD_NAME_LEN];
};

#endif  // MYIPCS_INCLUDE_THREAD_H_
